/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package modele;

/**
 *
 * @author Val
 */
public class Ville {
    private String nom;
    private String Pays;
    private String lat;
    private String lon;

    public Ville(){
        
    }

    public Ville(String nom, String Pays, String lat, String lon) {
        this.nom = nom;
        this.Pays = Pays;
        this.lat = lat;
        this.lon = lon;
    }

    public String getPays() {
        return Pays;
    }

    public void setPays(String Pays) {
        this.Pays = Pays;
    }

    public String getLat() {
        return lat;
    }

    public void setLat(String lat) {
        this.lat = lat;
    }

    public String getLon() {
        return lon;
    }

    public void setLon(String lon) {
        this.lon = lon;
    }

    public String getNom() {
        return nom;
    }

    public void setNom(String nom) {
        this.nom = nom;
    }

    @Override
    public boolean equals(Object obj) {
        if (obj == null) {
            return false;
        }
        if (getClass() != obj.getClass()) {
            return false;
        }
        final Ville other = (Ville) obj;
        if ((this.nom == null) ? (other.nom != null) : !this.nom.equals(other.nom)) {
            return false;
        }
        if ((this.Pays == null) ? (other.Pays != null) : !this.Pays.equals(other.Pays)) {
            return false;
        }
        if ((this.lat == null) ? (other.lat != null) : !this.lat.equals(other.lat)) {
            return false;
        }
        if ((this.lon == null) ? (other.lon != null) : !this.lon.equals(other.lon)) {
            return false;
        }
        return true;
    }

    @Override
    public int hashCode() {
        int hash = 7;
        hash = 59 * hash + (this.nom != null ? this.nom.hashCode() : 0);
        hash = 59 * hash + (this.Pays != null ? this.Pays.hashCode() : 0);
        hash = 59 * hash + (this.lat != null ? this.lat.hashCode() : 0);
        hash = 59 * hash + (this.lon != null ? this.lon.hashCode() : 0);
        return hash;
    }

    @Override
    public String toString() {
        return "Ville{" + nom + "," + Pays + "[" + lat + ";" + lon + "]}";
    }


    
}
